package ttu.idu0080.ryhm103_transportOrderService;

import java.io.IOException;

import javax.jws.WebService;

import ttu.idu0080.ryhm103_logger.OrderServicesLogger;

@WebService(targetNamespace = "http://ryhm103_transportOrderService.idu0080.ttu/", endpointInterface = "ttu.idu0080.ryhm103_transportOrderService.ryhm103_TransportOrderService", portName = "TransportServiceImplPort", serviceName = "TransportServiceImplService")
public class TransportServiceImpl implements ryhm103_TransportOrderService {

	public String orderTransport(){
		TransportOrder to=new TransportOrder();
		
		try {
			OrderServicesLogger.log("TransportOrderService starts", true);
			OrderServicesLogger.log("Pakkumisele: offer_id vastav tellimus registreeritud." + "Saadetise tracking number: [" + to.getTrackingNr() + "]", false);
			OrderServicesLogger.log("TransportOrderService ends", true);
		} catch (IOException e) {
			
			e.printStackTrace();
		}
		
		return to.getTrackingNr();
	}
}
